<template>
  <div id="app">
    <my-header></my-header>
    <!--通过路由链接的组件展示的位置-->
    <router-view></router-view>
  </div>
</template>

<script>
  import  MyHeader from './components/MyHeader'

export default {
  name: 'App',
  components: {MyHeader},
  component:MyHeader
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
